home *** CD-ROM | disk | FTP | other *** search
- Path: news.infi.net!usenet
- From: nngis@norfolk.infi.net (Greg DiGiorgio)
- Newsgroups: comp.lang.c
- Subject: Re: getting started on multitasking...
- Date: 15 Jan 1996 00:14:18 GMT
- Organization: Customer of InfiNet
- Message-ID: <4dc68q$13m@news.infi.net>
- References: <4d93fb$hej@srvr1.engin.umich.edu>
- NNTP-Posting-Host: h-langoliers.norfolk.infi.net
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.3
-
- In article <4d93fb$hej@srvr1.engin.umich.edu>,
- hasdi@news-server.engin.umich.edu says...
- >
- >Hello, I'm student interested in learning about multitasking
- >programming.
- >
- >Can somebody point me to some good URLs out there? Maybe some books?
- >What is the best enviroment to do it? I have a few at my disposal:
- >Windows 3.1, Windows NT, Unix and Linux (sorry, no OS/2). While you
- >are at it, I have a few questions....
- >
- >o is there any difference in threads, processes and forks?
- *** A process is an instance of a running program. If the OS supports
- *** it (OS/2 & UNIX), that process can kick off child tasks (threads).
- *** Kill the parent task, and you kill its child. Kill the child and
- *** the parent remains active. Boy, oh boy, are we not a violent bunch.
- *** Certanily we could have come up with better terms... I have heard
- *** of the term "forks" but am not knowledgeable enough to respond.
-
- >o What does it mean to be pre-emptive?
- *** If an OS is pre-emptive, then the OS controls how long a task can
- *** hog the CPU. The opposite to "pre-emptive" is "cooperative
- *** processing" wherein the task (running application) controls the
- *** use of the CPU. All other programs running depend on that task to
- *** relinquish the CPU.
- >o How does programs like webbrowsers, word processors,
- > spreadsheets benefit from multitasking?
- (and maybe multi-threading?)
- *** Web Browsers have the ability to download GIFs while keeping their
- *** hypertext active and ready. Conceivabluy, Web browsers could allow
- *** you to download files while viewing other info.
- *** Word processors can immediately benefit by internally repaginating
- *** your doc as you type in your text or with newer software, checking
- *** your spelling as you type in a word - instead of running spell check
- *** later.
- *** With spreadsheets, you can continue to type in data while the SS
- *** re-calcs dependent formulas. Better yet, would be to have the SS
- *** auto-update any linked SS cells as you continue to work.
-
- >Thanks.
- >
- >Hasdi
-
- Hasdi,
- I know some more knowledgable folks will reply and point you in the right
- direction. Multi-tasking is a big subject with newer subtopics including
- parallel processing, pipelining, etc. Good luck in this area. You
- probably could specialize in multi-processing and operating systems for a
- lifetime, but you better think about continuing your education.
-
- Greg DiGiorgio
-
-